/******************************************************************************
*
*               Copyright Mentor Graphics Corporation 2003
*                           All rights reserved
*
*   THIS WORK CONTAINS TRADE SECRETS AND PROPRIETARY INFORMATION WHICH IS
*    THE PROPERTY OF MENTOR GRAPHICS CORPORATION OR ITS LICENSORS AND IS
*                        SUBJECT TO LICENSE TERMS
*
*******************************************************************************

*******************************************************************************
* FILE NAME                                                          VERSION
* act_inline_function_test.c                                        1.1
*
* COMPONENT
* ANSI/ISO C test application
*
* DESCRIPTION
* Demonstrates the use of inline function.
*
* FUNCTIONS
* int act_inline_function_test(int value)
*
* DEPENDENCIES
* act_test.h
******************************************************************************/

#include "act_test.h"

#if (ACT_INLINE_FUNCTION_TEST)


inline int cube(int num)
{
     return (num * num * num );
}

/******************************************************************************
* FUNCTION
* int act_inline_function_test(int value)
*
* DESCRIPTION
* Demonstrates the use of inline function.
*
* INPUTS
* int value                     Counter value from ansi_c_test(..) in act.c
*
* OUTPUTS
* int                           returns sum of the cube(value) + cube(value)
******************************************************************************/
int act_inline_function_test(int value)
{
	
     return (cube(value) + cube(value));

} 

#endif

